package com.xitang.common.bean;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("biz_product")
public class BizProduct extends Model<BizProduct> {
    @TableId(value = "product_code")
    @ExcelProperty(value = "产品编码", index = 0)
    private String productCode;
    @ExcelProperty(value = "产品名称", index = 1)
    private String productName;
    @ExcelProperty(value = "产品颜色", index = 2)
    private String productColor;
    @ExcelProperty(value = "产品价格", index = 3)
    private Float productPrice;
    @ExcelProperty(value = "产品材质", index = 4)
    private String productTexture;
    @ExcelProperty(value = "产品风格", index = 5)
    private String productStyle;
    @ExcelProperty(value = "产品图片", index = 6)
    private String productImg;
    @ExcelProperty(value = "产品描述", index = 7)
    private String productDesc;
    @ExcelIgnore
    private Integer status = 1;

    @Override
    protected Serializable pkVal() {
        return this.productCode;
    }
}